import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import { close, start } from '../utils/nprogress';
import { useStore } from '../store/index'
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'login',
    component: () => import('../views/login.vue')
  },
  {
    path: '/report/screen',
    component: () => import('../views/report/screen/index.vue'),
    name: 'reportScreen',
    meta: { title: '数据大屏', icon: 'el-icon-collection',  },
    children: [
      {
        path: '/report/screen/blue',
        component: () => import('../views/report/screen/blue.vue'),
        name: 'reportScreenBlue',
        meta: { title: '数据大屏', icon: 'el-icon-collection',  },
      },
      {
        path: '/report/screen/yellow',
        component: () => import('../views/report/screen/yellow.vue'),
        name: 'reportScreenYellow',
        meta: { title: '数据大屏', icon: 'el-icon-collection',  },
      },
      {
        path: '/report/screen/undertint',
        component: () => import('../views/report/screen/undertint.vue'),
        name: 'reportScreenUndertint',
        meta: { title: '数据大屏', icon: 'el-icon-collection',  },
      },
    ]
  },
  {
    path: '/personal',
    name: 'personal',
    component:  () => import('../views/layout.vue'),
    meta: { title: '个人中心', icon: 'el-icon-collection' },
    children:[
      {
        path: '/personal/index',
        name: 'personalIndex',
        component: () => import('../views/personal/index.vue'),
        meta: { title: '个人中心', icon: 'el-icon-collection' },
      },
      {
        path: '/personal/editPhone',
        name: 'personalEditPhone',
        component: () => import('../views/personal/editPhone.vue'),
        meta: { title: '更换手机号', icon: 'el-icon-collection' },
      },
      {
        path: '/personal/editPassword',
        name: 'personalEditPassword',
        component: () => import('../views/personal/editPassword.vue'),
        meta: { title: '修改密码', icon: 'el-icon-collection' },
      },
    ],
  },
 
  {
    path: '/system',
    name: 'system',
    // component:  () => import('../views/layout.vue'),
    meta: { title: '系统管理', icon: 'el-icon-collection' },
    children: [
      {
        path: '/system/dictionary',
        component: () => import('../views/layout.vue'),
        name: 'systemDictionary',
        meta: { title: '字典管理', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/system/dictionary/index',
            component: () => import('../views/system/dictionary/index.vue'),
            name: 'systemDictionaryIndex',
            meta: { title: '数据字典', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/dictionary/child',
            component: () => import('../views/system/dictionary/child.vue'),
            name: 'systemDictionaryChild',
            meta: { title: '字典列表', icon: 'el-icon-collection',  }
          },
        ],
      },
      {
        path: '/system/file',
        component: () => import('../views/layout.vue'),
        name: 'systemFile',
        meta: { title: '文件模板', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/system/file/index',
            component: () => import('../views/system/file/index.vue'),
            name: 'systemFileIndex',
            meta: { title: '模板列表', icon: 'el-icon-collection',  }
          },
        ],
      },
      {
        path: '/system/message',
        component: () => import('../views/layout.vue'),
        name: 'systemMessage',
        meta: { title: '消息模板', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/system/message/index',
            component: () => import('../views/system/message/index.vue'),
            name: 'systemMessageIndex',
            meta: { title: '消息模板列表', icon: 'el-icon-collection',  }
          },
        ],
      },
      {
        path: '/system/authority/index',
        component: () => import('../views/layout.vue'),
        name: 'systemAuthorityIndex',
        meta: { title: '权限管理', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/system/authority/dept/index',
            component: () => import('../views/system/authority/dept/index.vue'),
            name: 'systemAuthorityDeptIndex',
            meta: { title: '部门管理', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/authority/role/index',
            component: () => import('../views/system/authority/role/index.vue'),
            name: 'systemAuthorityRoleIndex',
            meta: { title: '角色管理', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/authority/role/add',
            component: () => import('../views/system/authority/role/add.vue'),
            name: 'systemRoleAdd',
            meta: { title: '新增角色', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/authority/role/edit',
            component: () => import('../views/system/authority/role/edit.vue'),
            name: 'systemRoleEdit',
            meta: { title: '编辑角色', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/authority/role/detail',
            component: () => import('../views/system/authority/role/detail.vue'),
            name: 'systemRoleDetail',
            meta: { title: '查看角色', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/authority/account/index',
            component: () => import('../views/system/authority/account/index.vue'),
            name: 'systemAuthorityAccountIndex',
            meta: { title: '用户管理', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/authority/menu/index',
            component: () => import('../views/system/authority/menu/index.vue'),
            name: 'systemAuthorityMenuIndex',
            meta: { title: '菜单管理', icon: 'el-icon-collection',  }
          },
        ],
      },
      {
        path: '/system/flowPath',
        component: () => import('../views/layout.vue'),
        name: 'systemFlowPath',
        meta: { title: '流程管理', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/system/flowPath/form',
            component: () => import('../views/system/flowPath/form.vue'),
            name: 'systemFlowPathForm',
            meta: { title: '表单管理', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/flowPath/childForm/index',
            component: () => import('../views/system/flowPath/childForm/index.vue'),
            name: 'systemFlowPathchildFormIndex',
            meta: { title: '小表单管理', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/flowPath/childForm/add',
            component: () => import('../views/system/flowPath/childForm/add.vue'),
            name: 'systemFlowPathchildFormAdd',
            meta: { title: '新增表单', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/flowPath/childForm/edit',
            component: () => import('../views/system/flowPath/childForm/edit.vue'),
            name: 'systemFlowPathchildFormEdit',
            meta: { title: '编辑表单', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/flowPath/childForm/detail',
            component: () => import('../views/system/flowPath/childForm/detail.vue'),
            name: 'systemFlowPathchildFormDetail',
            meta: { title: '查看表单', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/flowPath/node',
            component: () => import('../views/system/flowPath/node.vue'),
            name: 'systemFlowPathNode',
            meta: { title: '节点管理', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/flowPath/flow/index',
            component: () => import('../views/system/flowPath/flow/index.vue'),
            name: 'systemFlowPathFlowIndex',
            meta: { title: '流程管理', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/flowPath/flow/add',
            component: () => import('../views/system/flowPath/flow/add.vue'),
            name: 'systemFlowPathFlowAdd',
            meta: { title: '新增流程', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/flowPath/flow/edit',
            component: () => import('../views/system/flowPath/flow/edit.vue'),
            name: 'systemFlowPathFlowEdit',
            meta: { title: '编辑流程', icon: 'el-icon-collection',  }
          },
        ],
      },
      {
        path: '/system/company',
        component: () => import('../views/layout.vue'),
        name: 'systemCompany',
        meta: { title: '担保公司管理', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/system/company/index',
            component: () => import('../views/system/company/index.vue'),
            name: 'systemCompanyIndex',
            meta: { title: '担保公司管理', icon: 'el-icon-collection',  }
          },
        ],
      },
      {
        path: '/system/product',
        component: () => import('../views/layout.vue'),
        name: 'systemProduct',
        meta: { title: '产品管理', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/system/product/index',
            component: () => import('../views/system/product/index.vue'),
            name: 'systemProductIndex',
            meta: { title: '产品管理', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/product/recycleBin',
            component: () => import('../views/system/product/recycleBin.vue'),
            name: 'systemProductRecycleBin',
            meta: { title: '产品回收站', icon: 'el-icon-collection',  }
          },
        ],
      },
      {
        path: '/system/institution',
        component: () => import('../views/layout.vue'),
        name: 'systemInstitution',
        meta: { title: '合作机构管理', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/system/institution/index',
            component: () => import('../views/system/institution/index.vue'),
            name: 'systemInstitutionIndex',
            meta: { title: '合作机构管理', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/institution/add',
            component: () => import('../views/system/institution/add.vue'),
            name: 'systemInstitutionAdd',
            meta: { title: '新增合作机构', icon: 'el-icon-collection',  }
          },
          {
            path: '/system/institution/edit',
            component: () => import('../views/system/institution/edit.vue'),
            name: 'systemInstitutionEdit',
            meta: { title: '编辑合作机构', icon: 'el-icon-collection',  }
          },
        
        ],
      },
    ]
  },
  {
    path: '/business',
    name: 'business',
    component: () => import('../views/layout.vue'),
    meta: { title: '业务进件', icon: 'el-icon-collection' },
    children: [
      {
        path: '/business/index',
        component: () => import('../views/business/index.vue'),
        name: 'businessIndex',
        meta: { title: '业务进件', icon: 'el-icon-collection',  },
      },
      {
        path: '/business/incoming',
        component: () => import('../views/business/incoming.vue'),
        name: 'businessIncoming',
        meta: { title: '业务处理', icon: 'el-icon-collection',  },
      },
    ]
  },
  {
    path: '/agent',
    name: 'agent',
    // component:  () => import('../views/layout.vue'),
    meta: { title: '待办任务', icon: 'el-icon-collection' },
    children: [
      {
        path: '/agent/financingBatch/index',
        component:  () => import('../views/layout.vue'),
        name: 'agentFinancingBatchIndex',
        meta: { title: '融资批量待办', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/agent/financingBatch/front',
            component: () => import('../views/agent/financingBatch/front.vue'),
            name: 'agentFinancingBatchFront',
            meta: { title: '融资批量待办-保前', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/financingBatch/behind',
            component: () => import('../views/agent/financingBatch/behind.vue'),
            name: 'agentFinancingBatchBehind',
            meta: { title: '融资批量待办-保后', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/financingBatch/nodeProcessing',
            component: () => import('../views/agent/financingBatch/nodeProcessing.vue'),
            name: 'agentFinancingBatchNodeProcessing',
            meta: { title: '融资批量待办-节点处理', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/financingBatch/handle',
            component: () => import('../views/agent/financingBatch/handle.vue'),
            name: 'agentFinancingBatchHandle',
            meta: { title: '融资批量待办-项目处理', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/financingBatch/information',
            component: () => import('../views/agent/financingBatch/information.vue'),
            name: 'agentFinancingBatchInformation',
            meta: { title: '融资批量待办-项目信息', icon: 'el-icon-collection',  },
          },
        ]
      },
      {
        path: '/agent/custom/index',
        component: () => import('../views/layout.vue'),
        name: 'agentCustom',
        meta: { title: '待推客户', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/agent/custom/financing',
            component: () => import('../views/agent/custom/financing.vue'),
            name: 'agentCustomFinancing',
            meta: { title: '待推客户-融资批量', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/custom/noFinancing',
            component: () => import('../views/agent/custom/noFinancing.vue'),
            name: 'agentCustomNoFinancing',
            meta: { title: '待推客户-非融资批量', icon: 'el-icon-collection',  },
          },
        ]
      },
      {
        path: '/agent/singleFinancing',
        component: () => import('../views/layout.vue'),
        name: 'agentSingleFinancing',
        meta: { title: '融资单笔待办', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/agent/singleFinancing/front',
            component: () => import('../views/agent/singleFinancing/front.vue'),
            name: 'agentSingleFinancingFront',
            meta: { title: '融资单笔待办-保前', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/singleFinancing/behind',
            component: () => import('../views/agent/singleFinancing/behind.vue'),
            name: 'agentSingleFinancingBehindIndex',
            meta: { title: '融资单笔待办-保后', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/singleFinancing/nodeProcessing',
            component: () => import('../views/agent/singleFinancing/nodeProcessing.vue'),
            name: 'agentSingleFinancingNodeProcessing',
            meta: { title: '融资单笔待办-节点处理', icon: 'el-icon-collection',  },
          },
         
        ]
      },
      {
        path: '/agent/noFinancingBatch/index',
        component: () => import('../views/layout.vue'),
        name: 'agentNoFinancingBatchIndex',
        meta: { title: '非融批量待办', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/agent/noFinancingBatch/front',
            component: () => import('../views/agent/noFinancingBatch/front.vue'),
            name: 'agentNoFinancingBatchFront',
            meta: { title: '非融批量待办-保前', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/noFinancingBatch/behind',
            component: () => import('../views/agent/noFinancingBatch/behind.vue'),
            name: 'agentNoFinancingBatchBehind',
            meta: { title: '非融批量待办-保后', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/noFinancingBatch/nodeProcessing',
            component: () => import('../views/agent/noFinancingBatch/nodeProcessing.vue'),
            name: 'agentNoFinancingBatchNodeProcessing',
            meta: { title: '非融批量待办-节点处理', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/noFinancingBatch/handle',
            component: () => import('../views/agent/noFinancingBatch/handle.vue'),
            name: 'agentNoFinancingBatchHandle',
            meta: { title: '融资批量待办-项目处理', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/noFinancingBatch/information',
            component: () => import('../views/agent/noFinancingBatch/information.vue'),
            name: 'agentNoFinancingBatchInformation',
            meta: { title: '融资批量待办-项目信息', icon: 'el-icon-collection',  },
          },
        ]
      },
      {
        path: '/agent/noFinancingSingle/index',
        component: () => import('../views/layout.vue'),
        name: 'agentNoFinancingSingleIndex',
        meta: { title: '非融单笔待办', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/agent/noFinancingSingle/front',
            component: () => import('../views/agent/noFinancingSingle/front.vue'),
            name: 'agentNoFinancingSingleFront',
            meta: { title: '非融单笔待办-保前', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/noFinancingSingle/behind',
            component: () => import('../views/agent/noFinancingSingle/behind.vue'),
            name: 'agentNoFinancingSingleBehind',
            meta: { title: '非融单笔待办-保后', icon: 'el-icon-collection',  },
          },
          {
            path: '/agent/noFinancingSingle/nodeProcessing',
            component: () => import('../views/agent/noFinancingSingle/nodeProcessing.vue'),
            name: 'agentNoFinancingSingleProcessing',
            meta: { title: '非融单笔待办-节点处理', icon: 'el-icon-collection'},
          },
        ]
      },
     
    ]
  },
  {
    path: '/service',
    name: 'service',
    // component:  () => import('../views/layout.vue'),
    meta: { title: '业务管理', icon: 'el-icon-collection' },
    children: [
      {
        path: '/service/financingBatch/index',
        component: () => import('../views/layout.vue'),
        name: 'serviceFinancingBatch',
        meta: { title: '融资批量', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/service/financingBatch/front',
            component: () => import('../views/service/financingBatch/front.vue'),
            name: 'serviceFinancingBatchFront',
            meta: { title: '保前管理', icon: 'el-icon-collection',  },
          },
          {
            path: '/service/financingBatch/behind',
            component: () => import('../views/service/financingBatch/behind.vue'),
            name: 'serviceFinancingBatchBehind',
            meta: { title: '保后管理', icon: 'el-icon-collection',  },
          },
          {
            path: '/service/financingBatch/detail',
            component: () => import('../views/service/financingBatch/detail.vue'),
            name: 'serviceFinancingBatchDetail',
            meta: { title: '查看详情', icon: 'el-icon-collection',  },
          },
        ]
      },
      {
        path: '/service/singleFinancing/index',
        component: () => import('../views/layout.vue'),
        name: 'serviceSingleFinancing',
        meta: { title: '融资单笔', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/service/singleFinancing/front',
            component: () => import('../views/service/singleFinancing/front.vue'),
            name: 'serviceSingleFinancingFront',
            meta: { title: '保前管理', icon: 'el-icon-collection',  },
          },
          {
            path: '/service/singleFinancing/behind',
            component: () => import('../views/service/singleFinancing/behind.vue'),
            name: 'serviceSingleFinancingBehind',
            meta: { title: '保后管理', icon: 'el-icon-collection',  },
          },
          {
            path: '/service/singleFinancing/detail',
            component: () => import('../views/service/singleFinancing/detail.vue'),
            name: 'serviceSingleFinancingDetail',
            meta: { title: '查看详情', icon: 'el-icon-collection',  },
          },
          {
            path: '/service/singleFinancing/form',
            component: () => import('../views/service/singleFinancing/form.vue'),
            name: 'serviceSingleFinancingForm',
            meta: { title: '查看详情-表单信息', icon: 'el-icon-collection',  },
          },
        ]
      },
      {
        path: '/service/noFinancingBatch/index',
        component: () => import('../views/layout.vue'),
        name: 'serviceNoFinancingBatch',
        meta: { title: '非融资批量', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/service/noFinancingBatch/front',
            component: () => import('../views/service/noFinancingBatch/front.vue'),
            name: 'serviceNoFinancingBatchFront',
            meta: { title: '非融资批量-保前管理', icon: 'el-icon-collection',  },
          },
          {
            path: '/service/noFinancingBatch/behind',
            component: () => import('../views/service/noFinancingBatch/behind.vue'),
            name: 'serviceNoFinancingBatchBehind',
            meta: { title: '非融资批量-保后管理', icon: 'el-icon-collection',  },
          },
        ]
      },
      {
        path: '/service/noFinancingSingle/index',
        component: () => import('../views/layout.vue'),
        name: 'serviceNoFinancingSingle',
        meta: { title: '非融资单笔', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/service/noFinancingSingle/front',
            component: () => import('../views/service/noFinancingSingle/front.vue'),
            name: 'serviceNoFinancingSingleFront',
            meta: { title: '非融资单笔-保前管理', icon: 'el-icon-collection',  },
          },
          {
            path: '/service/noFinancingSingle/behind',
            component: () => import('../views/service/noFinancingSingle/behind.vue'),
            name: 'serviceNoFinancingSingleBehind',
            meta: { title: '非融资单笔-保后管理', icon: 'el-icon-collection',  },
          },
          {
            path: '/service/noFinancingSingle/detail',
            component: () => import('../views/service/noFinancingSingle/detail.vue'),
            name: 'serviceNoFinancingSingleDetail',
            meta: { title: '查看详情', icon: 'el-icon-collection',  },
          },
          
        ]
      },
     
    ]
  },
  {
    path: '/report',
    name: 'report',
    // component:  () => import('../views/layout.vue'),
    meta: { title: '报表统计', icon: 'el-icon-collection' },
    children: [
      {
        path: '/report/business',
        component: () => import('../views/layout.vue'),
        name: 'reportBusiness',
        meta: { title: '业务报表', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/report/business/index',
            component: () => import('../views/report/business/index.vue'),
            name: 'reportBusinessIndex',
            meta: { title: '业务报表', icon: 'el-icon-collection',  },
          },
        ]
      },
      {
        path: '/report/operate',
        component: () => import('../views/layout.vue'),
        name: 'reportOperate',
        meta: { title: '运营报表', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/report/operate/index',
            component: () => import('../views/report/operate/index.vue'),
            name: 'reportOperateIndex',
            meta: { title: '运营报表', icon: 'el-icon-collection',  },
          },
        ]
      },
      {
        path: '/report/businessSubmission',
        component: () => import('../views/layout.vue'),
        name: 'reportBusinessSubmission',
        meta: { title: '运营报表', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/report/businessSubmission/index',
            component: () => import('../views/report/businessSubmission/index.vue'),
            name: 'reportBusinessSubmissionIndex',
            meta: { title: '业务数据信息', icon: 'el-icon-collection',  },
          },
        ]
      },
      


      {
        path: '/report/companyInfo',
        component: () => import('../views/layout.vue'),
        name: 'reportCompanyInfo',
        meta: { title: '公司基本信息', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/report/companyInfo/index',
            component: () => import('../views/report/companyInfo/index.vue'),
            name: 'reportCompanyInfoIndex',
            meta: { title: '公司基本信息', icon: 'el-icon-collection',  },
          },
        ]
      },
      {
        path: '/report/supervise/index',
        component: () => import('../views/layout.vue'),
        name: 'reportSuperviseIndex',
        meta: { title: '监管报送', icon: 'el-icon-collection',  },
        children: [
          {
            path: '/report/supervise/month',
            component: () => import('../views/report/supervise/month.vue'),
            name: 'reportSuperviseMonth',
            meta: { title: '月报', icon: 'el-icon-collection',  },
          },
          {
            path: '/report/supervise/quarter',
            component: () => import('../views/report/supervise/quarter.vue'),
            name: 'reportSuperviseQuarter',
            meta: { title: '季报', icon: 'el-icon-collection',  },
          },
          {
            path: '/report/supervise/year',
            component: () => import('../views/report/supervise/year.vue'),
            name: 'reportSuperviseYear',
            meta: { title: '年报', icon: 'el-icon-collection',  },
          },
          {
            path: '/report/supervise/compensationRecovery',
            component: () => import('../views/report/supervise/compensationRecovery.vue'),
            name: 'reportSuperviseCompensationRecovery',
            meta: { title: '代偿追偿信息表', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/counterGuarantee',
            component: () => import('../views/report/supervise/counterGuarantee.vue'),
            name: 'reportSuperviseCounterGuarantee',
            meta: { title: '反担保信息表', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/relatedParties',
            component: () => import('../views/report/supervise/relatedParties.vue'),
            name: 'reportSuperviseRelatedParties',
            meta: { title: '关联方担保统计表', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/contract',
            component: () => import('../views/report/supervise/contract.vue'),
            name: 'reportSuperviseContract',
            meta: { title: '合同信息表', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/releaseGuarantee',
            component: () => import('../views/report/supervise/releaseGuarantee.vue'),
            name: 'reportSuperviseReleaseGuarantee',
            meta: { title: '解除担保信息表', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/businessCase',
            component: () => import('../views/report/supervise/businessCase.vue'),
            name: 'reportSuperviseBusinessCase',
            meta: { title: '经营情况表', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/monthlySupervision',
            component: () => import('../views/report/supervise/monthlySupervision.vue'),
            name: 'reportSuperviseMonthlySupervision',
            meta: { title: '融资担保公司月度监管报表', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/individualStructures',
            component: () => import('../views/report/supervise/individualStructures.vue'),
            name: 'reportSuperviseIndividualStructures',
            meta: { title: '个别机构情况表', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/riskAssessment',
            component: () => import('../views/report/supervise/riskAssessment.vue'),
            name: 'reportSuperviseRiskAssessment',
            meta: { title: '融资担保公司风险排查分析表', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/institution',
            component: () => import('../views/report/supervise/institution.vue'),
            name: 'reportSuperviseInstitution',
            meta: { title: '融资担保公司机构季度报表', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/governmentOrgans',
            component: () => import('../views/report/supervise/governmentOrgans.vue'),
            name: 'reportSuperviseGovernmentOrgans',
            meta: { title: '政府性融资担保机构季度报表', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/guaranteeBusiness',
            component: () => import('../views/report/supervise/guaranteeBusiness.vue'),
            name: 'reportSuperviseGuaranteeBusiness',
            meta: { title: '担保业务情况', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/companyPersonnel',
            component: () => import('../views/report/supervise/companyPersonnel.vue'),
            name: 'reportSuperviseCompanyPersonnel',
            meta: { title: '公司及人员情况', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/institutionalInformation',
            component: () => import('../views/report/supervise/institutionalInformation.vue'),
            name: 'reportSuperviseInstitutionalInformation',
            meta: { title: '机构信息（融资担保公司名录表）', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/profitSituation',
            component: () => import('../views/report/supervise/profitSituation.vue'),
            name: 'reportSuperviseProfitSituation',
            meta: { title: '利润情况', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/assetRatio',
            component: () => import('../views/report/supervise/assetRatio.vue'),
            name: 'reportSuperviseAssetRatio',
            meta: { title: '资产比例情况（融资担保公司责任余额和资产比例情况）', icon: 'el-icon-collection',},
          },
          {
            path: '/report/supervise/assetsLiabilities',
            component: () => import('../views/report/supervise/assetsLiabilities.vue'),
            name: 'reportSuperviseAssetsLiabilitieso',
            meta: { title: '资产负债情况', icon: 'el-icon-collection',},
          },
        ]
      },



    ]
  },
]
const router = createRouter({
  history: createWebHashHistory(),
  routes
})
// 路由前置后卫
router.beforeEach((e) => {
  // 开启进度条
  start();
});
// 路由后置后卫
router.afterEach((to, from) => {
  // history.pushState(null, null,document.URL)
  const store=useStore()
  store.setPath(to)
  if(to.path!='/'){
    localStorage.setItem('rou',JSON.stringify({path:to.path,query:to.query}))
  }
  // 关闭进度条
  close();
});
export default router
